package com.thingsgrid.device.entity;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;

/**
 * 实体类
 */

@Data
@Document(collection = "device_alarm")
@ApiModel(value = "DeviceAlarm对象", description = "DeviceAlarm对象")
public class DeviceAlarm implements Serializable {
	/**
	 * 主键
	 */
	@Field("alarm_id")
	private String alarmId;

	/**
	 * 告警流水号
	 */
	@Field("serial_number")
	private String serialNumber;

	/**
	 * 告警采集时间
	 */
	@Field("collect_time")
	private String collectTime;

	/**
	 * 设备Id
	 */
	@Field("device_id")
	private String deviceId;

	/**
	 * 告警设备
	 */
	@Field("device_Name")
	private String deviceName;

	/**
	 * 告警分类
	 */
	@Field("alarm_type")
	private String alarmType;

	/**
	 * 资源范围
	 */
	@Field("resources_type")
	private String resourcesType;

	/**
	 * 告警发生时间
	 */
	@Field("alarm_create_time")
	private String alarmCreateTime;

	/**
	 * 告警等级
	 */
	@Field("alarm_grade")
	private String alarmGrade;

	/**
	 * 告警描述
	 */
	@Field("alarm_describe")
	private String alarmDescribe;

	/**
	 * 告警处理方式
	 */
	@Field("alarm_process")
	private String alarmProcess;

	/**
	 * 处理人
	 */
	@Field("process_author")
	private String processAuthor;

	/**
	 * 处理部门
	 */
	@Field("process_dept")
	private String processDept;

	/**
	 * 处理时间
	 */
	@Field("process_time")
	private String processTime;

	/**
	 * 告警状态
	 */
	@Field("alarm_status")
	private Integer alarmStatus;
}
